package webService;
import javax.jws.WebService;
import javax.xml.ws.Endpoint;


import Server.DAO.MessageDao;
import VWorld.Avatar;
import VWorld.Message;

@WebService
public class VWorldWebservice {

	public Message[] getUnreadMessages(Avatar avatar) {
		return MessageDao.getUnreadMessages(avatar);
		
	}

	public static void main(String[] args) {

	      Endpoint.publish(
	         "http://localhost:8080/VWorld/VWorldWebservice",
	         new VWorldWebservice());

	}
}